package com.yitiao.designmodel.struct.proxy.dynamic.jdk;

import com.yitiao.designmodel.struct.proxy.LiLive;
import com.yitiao.designmodel.struct.proxy.Live;

public class MainTest {
    public static void main(String[] args) {
        // 传入被代理类，由jdk动态的生成代理类
        Live proxy = (Live) JdkProxy.getProxy(new LiLive());
        proxy.play();
//        proxy.doo();
    }
}
